From: Carlos Garnacho Date: Fri, 27 Mar 2020 22:06:49 +0000 (+0100) Subject: st: Forward CSS foreground alpha as a PangoAttribute to text X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~751^2^2~29 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=73472ba6a708b76f72d8b7f21fc3298d025276f7;p=gnome-shell.git st: Forward CSS foreground alpha as a PangoAttribute to text Let the PangoRenderer handle this. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2504 --- diff --git a/src/st/st-private.c b/src/st/st-private.c index db18587c7..e75e10788 100644 --- a/src/st/st-private.c +++ b/src/st/st-private.c @@ -132,6 +132,12 @@ _st_set_text_from_style (ClutterText *text, color.blue * 255); pango_attr_list_insert (attribs, foreground); + if (color.alpha != 255) + { + PangoAttribute *alpha = pango_attr_foreground_alpha_new (color.alpha * 255); + pango_attr_list_insert (attribs, alpha); + } + decoration = st_theme_node_get_text_decoration (theme_node); if (decoration) {